package com.lottery.dao.qiuqiu.lobbyDao;

import com.lottery.entity.LotteryOdds;

import java.util.List;
import java.util.Map;

/**
 * lottery_odds赔率表
 * 
 * @author Administrator
 *
 */
public interface LotteryOddsDao {

	/**
	 * 根据bet_way查询赔率表
	 * 
	 * @param bet_way
	 * @return
	 */
	LotteryOdds selectLotteryOdds(Map<String, Object> params);

	/**
	 * 查询赔率表所有数据
	 * 
	 * @return
	 */
	List<LotteryOdds> selectLotteryOddsList();

	/**
	 * 根据lotteryType查询odd
	 */

	List<LotteryOdds> selectLotteryOddsListBylotteryType(int lotteyType);

	/**
	 * 查询赔率表所有数据
	 * 
	 * @return
	 */
	List<LotteryOdds> selectLotteryOddsListBytype(int lotteyType);

	/**
	 * 修改数据
	 * 
	 * @param lotteryOdds
	 * @return
	 */
	void updateLotteryOdds(LotteryOdds lotteryOdds);

	/**
	 * 根据playwayName查询赔率表
	 * 
	 * @param playwayName
	 * @return
	 */
	List<LotteryOdds> selectLotteryOddsByPlaywayName(LotteryOdds lotteryOdds);

	/**
	 * 查询分成比例
	 * 
	 * @return
	 */
	Double selectLotteryOddsRatio();

	/**
	 * 修改分成比例
	 * 
	 * @param lotteryOdds
	 * @return
	 */
	void updateLotteryOddsRatio(Double ratio);


    List<LotteryOdds> selectOddByPlaywayId(Map<String, Object> playInfoId);
}
